package com.dayilyword.job;

import com.dayilyword.job.mission.postMsg;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * <p>>@作者 Sc
 * <p>>@所属包 dayilyword:com.dayilyword.job.mission
 * <p>>@创建时间 2020-11-15-13-54
 * <p>>@功能描述
 **/
@Component
public class PostMsgJob {
    //每天7点半
    final static String cronStr = "0 30 7 ? * * ";

    @Scheduled(cron = cronStr)
    public void timeTask() {
        postMsg.sendMsgForZTE();
        postMsg.sendMsgForWeChat();
    }
}